
/**
 * 根据字段编号获取该字段对应的角色
 * @param selectId
 * @param rolesId
 */
function getRoleSelectFunBack(selectId,func,rolesId,funcParam) {
    var paramStr="";
    if(rolesId){
        paramStr="?roleIds="+rolesId;
    }
    $.ajax({
        type : "post",
        url : "../../../autoForm/autoFormSelect.html"+paramStr,
        async : false,
        success : function(data){
            //初始將a.html include div#iframe
            $("#"+selectId).html(data);
            if(func){
                if(funcParam){
                    eval(func+"("+funcParam+")");
                }else{
                    eval(func+"()");
                }

            }
        }
    });

}